<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<form class="well form-inline margin-top-20" method="post" action="">
			下注：{$bet_total}
			<br>
			获奖：{$bet_coins}
			<br>
			盈利：{$bet_total-$bet_coins}
			<br>
		</form>
		<if condition="$configPri['platform_total_amount_switch'] eq '1'" >
		<form class="well form-inline margin-top-20" method="post" action="{:url('winrecord/savePlatformAmount')}">
			水池：
			<input class="form-control" type="text" name="platform_total_amount" style="width: 200px;" value="{$platform_total_amount}" placeholder="请输入水池值">
			<input type="submit" class="btn btn-primary" value="保存水池">
		</form>
		</if>

		<form class="well form-inline margin-top-20" method="post" action="{:url('winrecord/game')}">
			会员： 
            <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}" placeholder="请输入会员ID">
            <input class="form-control" type="text" name="gameid" style="width: 200px;" value="{:input('request.gameid')}" placeholder="请输入游戏ID">
			<!--<input class="form-control" type="text" name="liveuid" style="width: 200px;" value="{:input('request.liveuid')}" placeholder="请输入主播ID">-->
			下注时间：
			<input class="form-control js-bootstrap-date" name="start_time" id="start_time" value="{:input('request.start_time')}" aria-invalid="false" style="width: 110px;"> -
			<input class="form-control js-bootstrap-date" name="end_time" id="end_time" value="{:input('request.end_time')}" aria-invalid="false" style="width: 110px;">
			<input type="submit" class="btn btn-primary" value="搜索">
		</form>		
		<form method="post" class="js-ajax-form" >

			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th>ID</th>
						<th>游戏ID</th>
						<th>主播（ID）</th>
						<th>游戏类型</th>
						<th>会员（ID）</th>
						<th>获奖位置</th>
						<th>位置1</th>
						<th>位置2</th>
						<th>位置3</th>
						<th>中奖金额</th>
						<th>下注时间</th>
					<!-- 	<th align="center">{:lang('ACTIONS')}</th> -->
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td>{$vo.id}</td>					
						<td>{$vo.gameid}</td>
						<td>{$vo.game.userinfo.user_nickname??''} ({$vo.game.userinfo.id??''})</td>
                        <td>{$action[$vo['action']]}</td>
						<td>{$vo['userinfo']['user_nickname']} ({$vo['uid']}) </td>
						<td>{$vo.game.result??'-'} </td>
						<td>{$vo['coin_1']} </td>
						<td>{$vo['coin_2']} </td>
						<td>{$vo['coin_3']} </td>
						<td>{$vo['win']} </td>
                        <td>{:date('Y-m-d H:i:s',$vo['addtime'])}</td>
						<!-- <td align="center">	
							<a href="{:url('Game/del',array('id'=>$vo['id']))}" class="btn btn-xs btn-danger js-ajax-delete" data-msg="您确定要删除吗？">{:lang('DELETE')}</a>
						</td> -->
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>

		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>